﻿namespace ConsoleApp3
{
    {

    }
    internal class Program
    {
        public class Device
        {
            public int DeviceId { get; set; }
            // 其他设备属性...
        }


        {
        {

            {

            return "K" + start + end;
        }
        static string ConvertRangeToNumber(string input)
        {
            string pattern = @"(K\d+)-\d+";
            string output = Regex.Replace(input, pattern, m =>
            {
                string matchedGroup = m.Groups[1].Value;
                return matchedGroup;
            });
        {
            {
                {
                }
                else if (strings[0].Length == 3)
                {
                    return strings[0];
                }

        {
        {
        }
        {
        }

        {
        }
        {
        }

        {
            {
            }
            else
            {
            }
            string ssss2 = " HV123  ";
            byte[] bytes = Encoding.UTF8.GetBytes(ssss2);

            List<int> numbers = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            Random random = new Random();


            // 打印打乱后的顺序
            foreach (int number in shuffledNumbers)
            {
                Console.WriteLine(number);
            }

            {
        }
    }
}
